<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function setFocus(){
	document.forms['form1'].elements['dossard'].focus();
}
</script>
</head>

<body onLoad="setFocus()">
<?php 
require_once("tools.php");
$dossard=0;
if(isset($_POST['dossard'])){
	require_once("bd_utils.php");
	
	$obj_utils=new bd_utils();
	$obj_utils->connect();
	$dossard=$obj_utils->setRunner($_POST['dossard']);
	$obj_utils->close();
	
}

?>
<h1>Arrivée</h1>

<form name="form1" method="post" action="./index.php?page=timer.php" autocomplete="off" >

<table class="principale">
	<tr>
		<td class="style1"><strong>Numéro de dossard:&nbsp;</strong></td>		
		<td> <input type="text" name="dossard"></td>
		<td><input type="submit" name="Submit" value="Submit"></td>
	</tr>
	<tr>
		<td nowrap style="width:250; text-align:right; "><br>Last: <?php if($dossard!=0){echo $dossard;} ?>&nbsp;</td>
	</tr>
</table>
</form>
</body>
</html>
